namespace DotNetNuke.Services.Log.EventLog
{
    using System;
    using System.Xml.Serialization;

    [Serializable, XmlRoot("property")]
    public class LogDetailInfo
    {
        private string _PropertyName;
        private string _PropertyValue;

        public LogDetailInfo() : this("", "")
        {
        }

        public LogDetailInfo(string name, string value)
        {
            this._PropertyName = name;
            this._PropertyValue = value;
        }

        public override string ToString()
        {
            return ("<b>" + this.PropertyName + "</b>: " + this.PropertyValue + ";&nbsp;");
        }

        [XmlElement("name")]
        public string PropertyName
        {
            get
            {
                return this._PropertyName;
            }
            set
            {
                this._PropertyName = value;
            }
        }

        [XmlElement("value")]
        public string PropertyValue
        {
            get
            {
                return this._PropertyValue;
            }
            set
            {
                this._PropertyValue = value;
            }
        }
    }
}

